/**
 * FileName: LoginController
 *
 * @author: 阿张
 * Date:     2021/3/22 10:55
 */
package com.housing.oauth.controller;

import com.housing.oauth.service.UserDetailServiceImpl;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class LoginController {

    @Resource
    private UserDetailServiceImpl userDetails;

    @RequestMapping("hello")
    public String login(){
        return "hello world";
    }
}
